/*
 * @Author: funlee 
 * @Email: i@funlee.cn 
 * @Date: 2017-12-11 15:40:50 
 * @Last Modified time:   2017-12-11 15:40:50 
 * @Description: 单页面多个地图
 */
import ol from 'openlayers'
import 'openlayers/dist/ol.css'
import logo from '../../img/logo.png'

export default () => {
  new ol.Map({
    controls: ol.control.defaults({
      attributionOptions: ({
        collapsible: false
      })
    }),
    logo: {
      src: logo,
      href: 'http://www.openstreetmap.org/'
    }, 
    layers: [
      new ol.layer.Tile({
        source: new ol.source.OSM()
      })
    ],
    view: new ol.View({
      center: [13078573.75444912, 4800741.73727404],
      zoom: 2
    }),
    target: 'map1'
  });

  new ol.Map({
    controls: ol.control.defaults({
      attributionOptions: ({
        collapsible: false
      })
    }),
    logo: {
      src: logo,
      href: 'http://www.openstreetmap.org/'
    },
    layers: [
      new ol.layer.Tile({
        source: new ol.source.OSM()
      })
    ],
    view: new ol.View({
      center: [13078573.75444912, 4800741.73727404],
      zoom: 2
    }),
    target: 'map2'
  });

  
}